<template>
  <FIAutoSelect
    v-model="processKey"
    :props="{ value: 'taskDefKey', label: 'taskName' }"
    :display-key="['taskName']"
    api-url="/bpm-service/ProcInst/queryTask"
    searchParam="taskKeyOrName"
  />
</template>
<script setup lang="ts">
import { computed } from 'vue'

import FIAutoSelect from '@/components/FIAutoSelect/index.vue'
const props = defineProps({
  modelValue: {
    type: String,
    default: '',
  },
})
const emits = defineEmits(['update:modelValue'])
let processKey: any = computed({
  get() {
    return props.modelValue
  },
  set(val) {
    emits('update:modelValue', val)
  },
})
</script>
